package com.cby.android.library.utils

/**
 * @description: StringUtils
 * @author: ChenBaoYang
 * @createDate: 2022/5/9 3:44 下午
 */
object StringUtils {

    /**
     * 处理转义字符串
     */
    fun htmlReplace(str: String): String? {
        var str = str
        str = str.replace("&ldquo;", "“")
        str = str.replace("&rdquo;", "”")
        str = str.replace("&nbsp;", " ")
        str = str.replace("&amp;","&", )
        str = str.replace("&#39;", "‘")
        str = str.replace("&rsquo;", "’")
        str = str.replace("&mdash;", "—")
        str = str.replace("&ndash;", "–")
        return str
    }
}